.class Lcom/teewoo/app/bus/ui/HomeMyselfTab$2;
.super Ljava/lang/Object;
.source "HomeMyselfTab.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/teewoo/app/bus/ui/HomeMyselfTab;->showCityConfirmDialog()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/teewoo/app/bus/ui/HomeMyselfTab;


# direct methods
.method constructor <init>(Lcom/teewoo/app/bus/ui/HomeMyselfTab;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab$2;->this$0:Lcom/teewoo/app/bus/ui/HomeMyselfTab;

    .line 101
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 3
    .parameter "dialog"
    .parameter "which"

    .prologue
    .line 103
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/HomeMyselfTab$2;->this$0:Lcom/teewoo/app/bus/ui/HomeMyselfTab;

    invoke-static {v2, p2}, Lcom/teewoo/app/bus/ui/HomeMyselfTab;->access$4(Lcom/teewoo/app/bus/ui/HomeMyselfTab;I)V

    .line 104
    const-string v0, "[\u53a6\u95e8]"

    .line 105
    .local v0, city:Ljava/lang/String;
    packed-switch p2, :pswitch_data_0

    .line 110
    :goto_0
    sput-object v0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->currentCityAddress:Ljava/lang/String;

    .line 113
    sget-object v2, Lcom/teewoo/app/bus/BeforeLogin;->preference:Landroid/content/SharedPreferences;

    invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    .line 114
    .local v1, edit:Landroid/content/SharedPreferences$Editor;
    const-string v2, "my_city"

    invoke-interface {v1, v2, v0}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 115
    invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 116
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    .line 117
    return-void

    .line 107
    .end local v1           #edit:Landroid/content/SharedPreferences$Editor;
    :pswitch_0
    const-string v0, "[\u53a6\u95e8]"

    goto :goto_0

    .line 105
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
    .end packed-switch
.end method
